<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
	<title>Mozat Angel</title>
	<link rel="stylesheet" type="text/css" href="/media/css/base.css" />
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
</head>
<body>
<table>
<tr><td>
<table>
{%for i in result%}
<tr {%if i.1 == 'noUpdate'%}style="background:#FF2D2D;"{%endif%}><td>{{i.0}}: </td><td>{{i.1}}</td></tr>
{%endfor%}
</table></td><td>
<a href="/dashboard/1/widget/{{widget.id}}/graph" target="rightFrame"><img src="/rrd/img/{{widget.id}}/?&start={{start}}&end={{end}}&height=200&width=400&cl={{lines}}" height="200" width="400" /></a>
</td><td><textarea name="remark" id="widget_remark" cols="60" rows="10">{%if widget.remark%}{{widget.remark}}{%endif%}</textarea></td><tr>
</table>
<script type="text/javascript">
$(document).ready(function(){
$("#widget_remark").change(function(){
    $.get("/api/update_widget_info/",{"wid":{{widget.id}},"remark":$("#widget_remark").val()}, function(data){
    });
    });
});
</script>
</body>
</html>
